/*
 * File Name : file.h
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-7
 * Last Edit : 2010-5-7
 */

#ifndef FILE_H
#define FILE_H

#include "node.h"
#include <string>

class file : public node
{
private:
  int type;
  float size;
  std::string data;
public:
  file();
  ~file(){}
  virtual int get_type();
  virtual float get_size();
  virtual node* get_son(){return NULL;}
  virtual bool set_son(node *new_son){ return false; }

  std::string *get_data();
  bool set_data(std::string *new_data);

};

#endif
